<?php $name = array();$name['name']="xyz";$name['email']="xyz@test.com";//print_r($name);echo json_encode($name);?>